import http from '../request.js'

// 测试登录接口
// export const Login = user => http.post('/user/login', user)

export default {
  getCartoonDetail: params => http.get('/api/product/getCartoonDetail', {
    params
  }), //获取视频详情
  getCartoonChapter: params => http.get('/api/cartoon/getChapterList', {
    params
  }), //获取剧集
  getCartoonPage: params => http.get('/api/cartoon/getChapterPage', {
    params
  }), //获取播放链接
  getCartoonCategory: params => http.get('/api/product/getCtcategory', {
    params
  }), //获取剧集分类
  getCartoonList: params => http.get('/api/product/getCartoonList', {
    params
  }), //获取影视列表
  addRead: data => http.post('/api/chapter/read/add/', data),
  //添加阅读记录
  historicalRecord: params => http.get('/api/cartoon/historicalRecord', {
    params
  }), //获取漫画阅读记录
}
